import Vue from 'vue'

import Cookies from 'js-cookie'

import 'normalize.css/normalize.css'

import Element from 'element-ui'

// 数据字典

import './assets/styles/element-variables.scss'

// global css
import './assets/styles/index.scss'

import App from './App'
import store from './store'
import router from './router/routers'

import './assets/icons' // icon
import './router/index' // permission control


// ---------------------------123-456

import corn from 'vue-cron';
Vue.use(corn)

// --------------
import 'bpmn-js-properties-panel-activiti/styles/properties.less' // 右边工具栏样式

import VueQuillEditor from 'vue-quill-editor'

// require styles
import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css'
import 'quill/dist/quill.bubble.css'
Vue.use(VueQuillEditor, /* { default global options } */)

import httb from '@/views/components/ht_table.vue'
import testhttb from '@/views/experiment/components/ht_table.vue'
import ykhttb from '@/views/ykp/components/ht_table.vue'
import admincentertb from '@/views/adminCenter/components/ht_table.vue'
import editDialog from '@/views/components/editDialog.vue'
Vue.component('httb', httb)
Vue.component('testhttb', testhttb)
Vue.component('ykhttb', ykhttb)
Vue.component('admincentertb', admincentertb)
Vue.component('editdialog', editDialog)

import ViewUI from 'view-design'
import 'view-design/dist/styles/iview.css'
Vue.use(ViewUI)
// -----

import 'highlight.js/styles/github.css';


// 接口转发平台配置

import { interPath,baseUrl } from '@/utils/interfaceForwarding' 
window.SITE_CONFIG = {}
window.SITE_CONFIG['storeState'] = interPath
window.SITE_CONFIG['baseUrl'] = baseUrl

// 接口转发平台配置




Vue.use(Element, {
  size: Cookies.get('size') || 'small' // set element-ui default size
})


Vue.config.productionTip = false
Vue.config.silent = true

Vue.prototype.get_branch = process.env.NODE_ENV === 'production' ? 'api' : '/api'

new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
